<!--  -->
<template>
  <div id='backg'>
    <button id='back' @click="back">
      <img src="~assets/img/login/back.svg" alt="">
    </button>
    <div id='box'>
      <p>Hmell</p>
      <div id='inputbox'>
        <p><input type="text" placeholder="账号"></p>
        
        <p><input type="password" placeholder="密码"></p>
      </div>
      <!-- <button class="longonbtn">注册</button> -->
      <button class="loginbtn">登录</button>
  </div>
    </div>
</template>

<script>
  export default {
  data() {
    return {
      isBack:false
    }
  },
  //生命周期 - 创建完成（访问当前this实例）
  methods:{
    back(){
      this.$router.back()
    }
  },
  created() {
    console.log('login')
  },
  //生命周期 - 挂载完成（访问DOM元素）
  mounted() {
    console.log('login')
  }
  }
</script>
<style scoped>
/* @import url(); 引入css类 */
#back{
  position: fixed;
  top: 10px;
  left: 10px;
  background-color:#f6f6f6;
  padding: 10px;
}
  #backg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    font-size: 4em;
    /* background-image: linear-gradient( 135deg, #1177b0, #df8ddf); */
    background-color:#f6f6f6;
    z-index: 10;
  }
  #box{
    width: 100%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  /* #login{
    width: 12rem;
    height: 15rem;
    padding: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);

    background-color: #f6f6f6;
    border: none;
    border-radius: 5px;

    text-align: center;
    font-weight: 900;

    box-shadow: 20px 20px 60px #242424a4,
                -20px -20px 60px #94b0c075;
  } */
  p{
    text-shadow: 1px 2px 3px #b4b4b4;
  }
  #inputbox{
    margin: 30px 0 0 0;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
  }
  input{
    width: 60%;
    height: 30px;
    margin: 20px auto;
    padding: 6px 10px;
    font-size: 22px;
    border-radius: 10px;
    background-color: #f6f6f6de;
    box-shadow: 1px 2px 3px #242424;
  }
  .loginbtn{
    margin: 20px 5px;
    padding: 6px 0;
    width: 60%;
    height: 50px;
    border: solid;
    border-radius: 10px;
    box-shadow: 1px 2px 3px #242424;
    font-weight: 700;
    font-size: 24px;
  }
</style>